<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*,java.io.*,java.sql.*,java.text.*, dbAccess.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Grant Doctor Access</title>
<link rel="stylesheet" type="text/css" href="css_files/style.css" />
</head>
<body>
<%
	Doctor doctor = new Doctor();
	if(doctor.removePatientRights(Integer.parseInt(request.getParameter("docId")),Integer.parseInt(request.getParameter("patientId"))))
	{
		out.print("Access has been removed.");
	}
	else
	{
		out.print("Access hasn't been granted. Maybe access is already granted for this doctor/patient combo?");
	}	
 %>
<FORM id="formBack" action="doctorHome.jsp">
 	<input name="adminRemove" type="submit" id="adminRemove" value="Back to Home" />
</FORM>
</body>
</html>